<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:v-on="http://www.w3.org/1999/xhtml">

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title></title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="../../../../static/favicon.ico" th:href="@{/favicon.ico}">

    <link rel="stylesheet" type="text/css" href="../../../../static/bootstrap/css/bootstrap.min.css"
          th:href="@{/bootstrap/css/bootstrap.min.css}"/>
    <link rel="stylesheet" type="text/css" href="../../../../static/web/admin/css/font-awesome.css"
          th:href="@{/web/admin/css/font-awesome.css}"/>
    <link rel="stylesheet" type="text/css" href="../../../../static/web/admin/css/style.css"
          th:href="@{/web/admin/css/style.css}"/>

</head>

<body class="gray-bg">
<div class="wrapper wrapper-content" id="body">
    <table class="table table-hover table-bordered" th:if="${log}">
        <thead>
        <tr>
            <th style="width: 80px;">
                项目
            </th>
            <th>
                内容
            </th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td>ID</td>
            <td th:text="${log.id}"></td>
        </tr>
        <tr>
            <td>日志类型</td>
            <td th:text="${log.type}"></td>
        </tr>
        <tr th:if="${log.type == 'admin'}">
            <td>操作人</td>
            <td th:text="${log.admin.name}"></td>
        </tr>
        <tr th:if="${log.type == 'user'}">
            <td>操作人</td>
            <td th:text="${log.user.name}"></td>
        </tr>
        <tr>
            <td>操作类型</td>
            <td th:text="${log.actionType}"></td>
        </tr>
        <tr>
            <td>操作内容</td>
            <td th:text="${log.actionText}"></td>
        </tr>
        <tr>
            <td>时间</td>
            <td th:text="${log.addTime}"></td>
        </tr>
        <tr>
            <td>IP</td>
            <td th:text="${log.addIp}"></td>
        </tr>
        <tr>
            <td>浏览器</td>
            <td th:text="${log.addUa}"></td>
        </tr>
        </tbody>
    </table>
</div>

<script src="../../../../static/plugins/jquery.min.js" th:src="@{/plugins/jquery.min.js}" type="text/javascript"
        charset="utf-8"></script>
<script src="../../../../static/bootstrap/js/bootstrap.min.js" th:src="@{/bootstrap/js/bootstrap.min.js}"
        type="text/javascript" charset="utf-8"></script>

</body>

</html>